package com.example.houqin_oa.controller;

import com.example.comment_oa.pojos.PublicWare;
import com.example.comment_oa.response.AjaxResponse;
import com.example.houqin_oa.service.PublicWareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:公共物品
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2022/10/20 9:41
 * @Entry_Name:my_springcloud_project01cangku
 */
@RestController
@CrossOrigin
@RequestMapping("/houqinOa")
public class WareController {
    @Autowired
    PublicWareService publicWareService;

    //加载，条件查询
    @PostMapping("/Ware/QueryWare")
    public AjaxResponse QueryWare(@RequestBody PublicWare publicWare){
        System.err.println(publicWare);
        return AjaxResponse.success(publicWareService.QueryWare(publicWare));
    }



}
